package router

import (
	"OJCenter/router/api"
	"github.com/gin-gonic/gin"
)

func InitNoticeRouter(api *api.Api, Router *gin.RouterGroup) {
	AuthorityRouter := Router.Group("Notice")
	{
		AuthorityRouter.POST("createNotice", api.CreateNotice)   // 创建通知
		AuthorityRouter.POST("deleteNotice", api.DeleteNotice)   // 删除通知
		AuthorityRouter.POST("updateNotice", api.UpdateNotice)   // 更新通知
		AuthorityRouter.POST("getNoticeList", api.GetNoticeList) // 获取通知列表
	}
}
